package com.moyu.admin.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.moyu.admin.entity.TUserInfo;
import com.moyu.admin.mapper.TUserInfoMapper;
import com.moyu.admin.service.SysUserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author moyu
 * @since 2019-02-18
 */
@Service
public class SysUserInfoServiceImpl extends ServiceImpl<TUserInfoMapper, TUserInfo> implements SysUserInfoService {

  @Autowired
  private TUserInfoMapper sysUserInfoMapper;

  @Override
  public Page<TUserInfo> selectPage(Page<TUserInfo> page) {
    page.setRecords(sysUserInfoMapper.selectUserList(page));
    return page;
  }
}
